package bdz.projects.sc.core
{
	
	/**
	 * ...
	 * @author ...
	 */
	public dynamic class SCUnitList extends Array
	{
		public function SCUnitList(xlist:XMLList) {
			applyValues(xlist);
		}
		protected function applyValues(xlist:XMLList):void {
			clear();
			for each(var xm:XML in xlist) {
				push(new SCUnit(xm));
			}
		}
		protected function clear():void {
			while (length) {
				shift();
			}
		}
	}
	
}